package nc.ui.so.m32.billui.editor.headevent;

import nc.ui.pub.bill.BillCardPanel;
import nc.ui.pubapp.uif2app.event.IAppEventHandler;
import nc.ui.pubapp.uif2app.event.card.CardHeadTailBeforeEditEvent;
import nc.ui.so.m32.billui.pub.UptFindPriCondActionEnable;
import nc.ui.uif2.actions.StandAloneToftPanelActionContainer;

public class CardHeadTailBeforeEditHandler implements
		IAppEventHandler<CardHeadTailBeforeEditEvent> {

	private StandAloneToftPanelActionContainer actionsOfCard;
	
	public CardHeadTailBeforeEditHandler(StandAloneToftPanelActionContainer actionsOfCard) {
		this.actionsOfCard = actionsOfCard;
	}
	
	@Override
	public void handleAppEvent(CardHeadTailBeforeEditEvent e) {
		BillCardPanel billCardPanel = e.getBillCardPanel();
		UptFindPriCondActionEnable ef = new UptFindPriCondActionEnable();
		ef.uptCardOfAction(billCardPanel, actionsOfCard);
	}
}
